MacBook Pro Factory reset started installing OS X El Capitan but now OS X Mavericks installer appears
Install Mavericks and upgrade it to El Capitan. When your do so it should create a proper recovery partition. Reboot into that and erase the disk and re-install El Capitan.