F5 beat profit and sales estimates and boosted its outlook as the cloud-services provider benefited from increased demand.